﻿using Api.WDS.Operate;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Api.WDS.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class InteractiveController : ControllerBase
    {
        /// <summary>
        /// 文章点赞
        /// </summary>
        /// <returns></returns>
        [HttpGet("ArticleLike")]
        public IActionResult ArticleLike() {
            var token = HttpContext.Request.Query["Token"];
            var articleId = HttpContext.Request.Query["ArticleId"];

            return Ok(new InteractiveOp().ArticleLike(token, articleId));
        }
    }
}
